package concurency.vehicletracker.immutable;

public class ImmutablePoint {
	final private int x, y;

	public ImmutablePoint(int x, int y) {
		this.x = x;
		this.y = y;
	}

	public ImmutablePoint() {
		this(0,0);
	}

	public ImmutablePoint(ImmutablePoint p) {
		this(p.x, p.y);
	}
	
	public int getX() {
		return x;
	}

	public int getY() {
		return y;
	}

}

